{__NOLAYOUT__}
{include file="/../template@default/header" title="$title"}

<body class="mdui-theme-primary-blue mdui-theme-accent-blue mdui-appbar-with-toolbar">
    {if !empty(session('uid'))} {include file="/../template@default/topbar_user"} {else /} {include file="/../template@default/topbar"}
    {/if}

    <div class="mdui-container">
        <div class="mdui-row mdui-text-center">
            <div class="system-message mf-panel mdui-m-y-3 mdui-typo">
                <header class="mf-panel-hd">
                    <h3>出现错误！</h3>
                </header>
                <div class="content mf-panel-bd">
                    <p><?php echo(strip_tags($msg));?></p>
                    <p>将于：<b id="wait">
                        <?php echo($wait);?>
                    </b>后页面自动<a id="href" href="<?php echo($url);?>">跳转</a></p>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        (function () {
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</body>

</html>